cmake_minimum_required(VERSION 3.10.2)
# 导入头文件
include_directories(src/main/cpp/libyuv/include)
# 指定动态库的路径
set(LIB_DIR ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI} )
# 打印目录。
#message(FATAL_ERROR "libyuv library not found in ${LIB_DIR}")
add_library( # Sets the name of the library.
        mylibyuv
        STATIC
        src/main/cpp/libyuv_jni.cpp)
# 通过 PRIVATE 强行链接指定的文件。通过find找不到文件，也是离谱的。
target_link_libraries(mylibyuv
        PRIVATE ${LIB_DIR}/libyuv.so
        log
        )

